package com.axxy.observer;

/**
 * @author 一缕茜阳
 * @date 2021/7/15
 */
public class ReadNewsObserver implements Observer{

    private String date;
    @Override
    public void getNewData(String newDate) {
        this.date = newDate;
    }

    @Override
    public void operateData() {
        System.out.println(date);
    }
}
